import request from '@/utils/request'
// import store from '@/store' // store===this.$store
// 获取用户信息
export const sysProfile = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
    // headers: {
    //   Authorization: `Bearer ${store.state.user.token}`
    // }
  })
}
// 获取 员工头像等数据信息
export const sysUser = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}
// 修改员工用户信息
export const sysUserPut = (data) => {
  return request({
    url: `/sys/user/${data.id}`,
    method: 'put',
    data
  })
}
